<script type="module">
  // console.log(Vue)

  {
    globalThis.serverRes = {
      template:  new URL('comformscr2.twig', location.origin).href,
      area:  new URL('area.json', location.origin).href
    }
    function ready() {
      let jshref = new URL('element-plus.2.0.3.js', location.origin).href;

      // console.log(jshref)
      globalThis.importScripts(jshref).then(function () {
        // ElMessage.info('sdsds')
        globalThis.ElMessage = globalThis.ElementPlus.ElMessage;
        globalThis.ElNotification = globalThis.ElementPlus.ElNotification;
        globalThis.app = window.startApp();
      })
    }
    // setTimeout(() => {
    //
    // }, 150)

    function onLibReady() {
      // console.log('onLibReady');
      ready();
    }
    globalThis.onLibReady = onLibReady


    setTimeout(() => {
      // globalThis.importScripts('/jszip.min.js');
      globalThis.importScripts('/echarts.min.js');
    }, 300)
  }
</script>
